﻿<%@ Page Language="C#" AutoEventWireup="true"
    Inherits="TryWizard_Default" CodeBehind="Default.aspx.cs" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>LitwareHR © 2008 Microsoft Corporation</title>


</head>
<body id="Wizard">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="litwareScriptManager" runat="server" />
<div id="pagewrap">
	<div id="container">
		<div id="lvl1">
		
			<div id="logo">
				<a href="../Default.aspx"></a></div>
						<div id="mainnav">
				<uc:mainmenu id="MainMenu1" runat="server" Visible="true" />
			</div>
		</div>
		<div id="lvl2">
			<div id="banner">
				<a href="Default.aspx"></a></div>
			</div>
		<div id="lvl3">
		
				<div id="navigationPath">
					<asp:SiteMapPath ID="SiteMapPath" runat="server" />
				</div>	
		
		<h1>
        Organization information</h1>
        <br />
    <table>
        <tr>
            <td width="25%">
                <asp:Label ID="nameLabel" runat="server" Text="Legal name"></asp:Label><span class="requieredField">&nbsp;*</span></td>
            <td colspan="2">
                <asp:TextBox ID="nameTextBox" runat="server" Width="100px"></asp:TextBox>          
                <asp:RequiredFieldValidator ID="legalNameRequired" runat="server" ControlToValidate="nameTextBox"
                    ErrorMessage="Legal name is required." class="error">Legal name is required</asp:RequiredFieldValidator></td>
            <td>
                <em class="requieredField">Like "Contoso LLC"</em>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="aliasLabel" runat="server" Text="Alias"></asp:Label><span class="requieredField">&nbsp;*</span></td>
            <td colspan="2">
                
                <asp:TextBox ID="aliasTextBox" runat="server" Width="100px"></asp:TextBox>           
                <asp:RequiredFieldValidator ID="aliasRequired" runat="server" ControlToValidate="aliasTextBox"
                    ErrorMessage="Alias is required." SetFocusOnError="True" class="error">Alias is required</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="aliasValid" runat="server" ControlToValidate="aliasTextBox"
                    ErrorMessage="Alias must not contain non-word characters" ValidationExpression="(\w)*"
                    Display="Static">*</asp:RegularExpressionValidator>
            </td>
            <td>
                <em class="requieredField">Like "contoso"</em>
            </td>
        </tr>
        <tr>
            <td>          
            <br />  
                <asp:Label ID="sizeLabel" runat="server" Text="Domain model"></asp:Label></td>
            <td colspan="3">
            <br />
                <asp:RadioButton ID="domainModelRadioButton1" Text="small" runat="server" GroupName="domainModel"
                    Checked="True" />
                <asp:RadioButton ID="domainModelRadioButton2" Text="medium" runat="server" GroupName="domainModel" /></td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:UpdatePanel ID="videoResumeUpdatePanel" runat="server" ChildrenAsTriggers="true">
                    <ContentTemplate>
                        <table>
                            <tr>
                                <td valign="middle">
                                <br />
                                    <asp:CheckBox ID="videoResumeCheckBox" runat="server" Checked="false" Text="Enable Video Resumes (Silverlight Streaming)"
                                        AutoPostBack="true" OnCheckedChanged="videoResumeCheckBox_CheckedChanged" />&nbsp;
                                    <asp:Image ImageUrl="~/Imx/silverlightLogoSmall.png" Width="20" Height="19" ID="silverLightSmallImage"
                                        runat="server" ImageAlign="AbsMiddle" />
                                </td>
                            </tr>
                        </table>
                        <asp:Panel ID="videoResumePanel" runat="server" Visible="false">
                            <table>
                                <tr>
                                    <td>
                                        Account Id:</td>
                                    <td>
                                        <asp:TextBox ID="silverlightIdTextBox" runat="server" Width="240px" /></td>
                                </tr>
                                <tr>
                                    <td>
                                        Account Key:</td>
                                    <td>
                                        <asp:TextBox ID="silverlightKeyTextBox" runat="server" Width="240px" /></td>
                                </tr>
                                <tr>
                                    <td align="right" colspan="2">
                                        <a href="SilverlightAccountHowTo.aspx" class="silverlight-link" target="_blank">How
                                            to get an Account Id & Account Key</a>
                                        <hr />
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td colspan="4">
            <br /><br />
            <h2>Admin account</h2>
            <br />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Admin Username"></asp:Label>
                <br /><br /></td>
            <td colspan="3">
                <strong>admin</strong>
                <br /><br />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="passwordLabel" runat="server" Text="Admin Password"></asp:Label><span class="requieredField">&nbsp;*</span></td>
            <td colspan="2">
                <asp:TextBox ID="passwordTextBox" TextMode="Password" runat="server" Width="100px" CssClass="inputRequiered" ></asp:TextBox>
        
                <asp:RequiredFieldValidator ID="passwordRequired" runat="server" ControlToValidate="passwordTextBox"
                    ErrorMessage="Admin Password is required." SetFocusOnError="True" class="error">Admin Password is required</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="strongPasswordValidator" runat="server" ControlToValidate="passwordTextBox"
                    ErrorMessage="Password must have at least 1 number, 1 special character, and at least 8 characters." ValidationExpression="(?=^.{8,}$)(?=.*\d)(?=.*\W+)(?![.\n]).*$">*</asp:RegularExpressionValidator>
            </td>
            <td rowspan="2">
                <em class="requieredField">You need a string password with at least one non alphanumeric character and a minimum
                    lenght of 8 characters.</em>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="confirmPasswordLabel" runat="server" Text="Confirm Password"></asp:Label><span class="requieredField">&nbsp;*</span></td>
            <td>
                <asp:TextBox ID="confirmPasswordTextBox" runat="server" TextMode="Password" Width="100px" CssClass="inputRequiered" ></asp:TextBox></td>
            <td>
                <asp:CompareValidator ID="confirmPasswordCompare" runat="server" ControlToCompare="confirmPasswordTextBox"
                    ControlToValidate="passwordTextBox" ErrorMessage="The Password and Confirmation Password must match.">*</asp:CompareValidator></td>
        </tr>
    </table>
    <br />
    <asp:ValidationSummary ID="ValidationSummary" runat="server" />
    <br /><br />
    <asp:Button ID="DoProvisioningButton" runat="server" Text="Provision the application"
        OnClick="DoProvisioningButton_Click" CssClass="button"  />
			        <asp:LinkButton ID="DemoLinkButton" runat="server" 
            Text="[demo]" onclick="DemoLinkButton_Click" CausesValidation="False"/>
			        <div style="text-align:right"><br /></div>			        
			</div>	
			
		<div id="footer">
			<div class="copyright">
				<p>© 2008. Litware HR. All Rights Reserved.</p>
			</div>			
		</div>
	</div>
</div>

    </form>
</body>
</html>



